package com.isoftstone.common.service;



import com.isoftstone.common.Page;
import com.isoftstone.common.entity.SysDict;

import java.util.List;
import java.util.Map;

/**
 * Created by admin on 16/5/16.
 */


public interface ISysDictService {
    public void saveDict(SysDict sysDict)throws Exception;

    public void updateDict(SysDict sysDict)throws Exception;

    List<SysDict> getSysDictlistPage(Page page) throws Exception ;

    public List<SysDict> getDictBytype(String type) throws  Exception;

    public Map<String,String> getDictMap(String type)throws  Exception;

    public SysDict getDictBytypeAndCode(String type, String code) throws  Exception;

    SysDict getDictById(String dictId)throws Exception ;

    void deleteDict(String dictId)throws Exception ;

    public List<SysDict> getDictBycodeName(String codeName) throws  Exception;


    /**
     * 查询工作申请类型
     * @return
     * @throws Exception
     *
     */


    List<SysDict> findJobTypes(String comCode) throws Exception ;


}
